﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SiteLayout.Master" AutoEventWireup="true" CodeBehind="AdvancedSearch.aspx.cs" Inherits="carportal.AdvancedSearch" culture="auto" meta:resourcekey="PageResource1" uiculture="auto" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style>
        div{float:left;}
        .style1
        {
            width: 100%;
        }
        .style4
        {
            width: 245px;
        }
        select {
        };
        .style5
        {
            width: 260px;
        }
        .style6
        {
            width: 189px;
        }
        .style8
        {
            width: 314px;
        }
        
        .style10
        {
            width: 205px;
        }
        .style11
        {
            width: 158px;
        }
        
        .style13
        {
            padding-left:25px;
            width: 718px;
        }
        .style16
        {
            padding-left:20px;
            width: 718px;
        }
        
        .style18
        {
            width: 285px;
        }
        .style19
        {
            width: 191px;
        }
        
    </style>
    <script type="text/javascript">
        $(document).ready(function () {
            document.body.id = "page1";
        }); 
	</script>  
</asp:Content>
<%--<asp:Content ID="Content2" ContentPlaceHolderID="latestcars" runat="server">
</asp:Content>--%>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server"><ContentTemplate>
      <br /><div class="container_12" style="margin-left: 10px;">
                      	 
                      
         <table style="background-image:url(images/box720x632.png); background-repeat: no-repeat;">
         <tr><td> CAR <span class="color-3">SEARCH</span></td></tr><tr>
             <td class="style16">
       
             <asp:SqlDataSource ID="SqlDataSourceSearchCar" runat="server" 
                 ConnectionString="<%$ ConnectionStrings:bestgifts4usConnectionString %>" 
                 DeleteCommand="DELETE FROM [carportal_search_cars] WHERE [id] = @id" 
                 InsertCommand="INSERT INTO carportal_search_cars(searched_user, make, model, model_by_user, car_type, engine_power, first_reg_date, fuel_type, gearbox, price_from, price_to, country_code, location_city, climate_control, seat_count, color, door_count, Auxiliary_heating, Central_locking, Cruise_control, Electric_heated, Electric_windows, Leather_seats, Parking_sensors, Power_Steering, Sunroof, Four_wheel_drive, Immobilizer, Xenon_headlights, ABS, ESP, user_comments, first_reg_year_from, first_reg_year_to, make0, model0, make1, model1, make2, model2, cartype1, cartype2, cartype3, cartype4, cartype5, cartype6, cartype7, cartype8, millage_km_to, millage_km_from) VALUES (@searched_user, @make, @model, @model_by_user, @car_type, @engine_power, @first_reg_date, @fuel_type, @gearbox, @price_from, @price_to, @country_code, @location_city, @climate_control, @seat_count, @color, @door_count, @Auxiliary_heating, @Central_locking, @Cruise_control, @Electric_heated, @Electric_windows, @Leather_seats, @Parking_sensors, @Power_Steering, @Sunroof, @Four_wheel_drive, @Immobilizer, @Xenon_headlights, @ABS, @ESP, @user_comments, @first_reg_year_from, @first_reg_year_to, @make0, @model0, @make1, @model1, @make2, @model2, @cartype1, @cartype2, @cartype3, @cartype4, @cartype5, @cartype6, @cartype7, @cartype8,@millage_km_from,@millage_km_to);
SELECT  @SearchID = SCOPE_IDENTITY(); " 
                 SelectCommand="SELECT * FROM [carportal_search_cars]" 
                 
                 
                 UpdateCommand="UPDATE [carportal_search_cars] SET [searched_user] = @searched_user, [make] = @make, [model] = @model, [model_by_user] = @model_by_user, [car_type] = @car_type, [engine_power] = @engine_power, [first_reg_date] = @first_reg_date, [millage_km_from] = @millage_km, [fuel_type] = @fuel_type, [gearbox] = @gearbox, [price_from] = @price_from, [price_to] = @price_to, [country_code] = @country_code, [location_city] = @location_city, [climate_control] = @climate_control, [seat_count] = @seat_count, [color] = @color, [door_count] = @door_count, [Auxiliary_heating] = @Auxiliary_heating, [Central_locking] = @Central_locking, [Cruise_control] = @Cruise_control, [Electric_heated] = @Electric_heated, [Electric_windows] = @Electric_windows, [Leather_seats] = @Leather_seats, [Parking_sensors] = @Parking_sensors, [Power_Steering] = @Power_Steering, [Sunroof] = @Sunroof, [Four_wheel_drive] = @Four_wheel_drive, [Immobilizer] = @Immobilizer, [Xenon_headlights] = @Xenon_headlights, [ABS] = @ABS, [ESP] = @ESP, [user_comments] = @user_comments, [first_reg_year_from] = @first_reg_year_from, [first_reg_year_to] = @first_reg_year_to, [make0] = @make0, [model0] = @model0, [make1] = @make1, [model1] = @model1, [make2] = @make2, [model2] = @model2, [cartype1] = @cartype1, [cartype2] = @cartype2, [cartype3] = @cartype3, [cartype4] = @cartype4, [cartype5] = @cartype5, [cartype6] = @cartype6, [cartype7] = @cartype7, [cartype8] = @cartype8 WHERE [id] = @id" 
                 oninserted="SqlDataSourceSearchCar_Inserted">
                 <DeleteParameters>
                     <asp:Parameter Name="id" Type="Int32" />
                 </DeleteParameters>
                 <InsertParameters>
                     <asp:Parameter Name="searched_user" Type="Int32" />
                     <asp:Parameter Name="make" Type="Int32" />
                     <asp:Parameter Name="model" Type="Int32" />
                     <asp:Parameter Name="model_by_user" Type="String" />
                     <asp:Parameter Name="car_type" Type="String" />
                     <asp:Parameter Name="engine_power" Type="String" />
                     <asp:Parameter Name="first_reg_date" Type="String" />
                     <asp:ControlParameter ControlID="DropDownListFuelType" Name="fuel_type" 
                         PropertyName="SelectedValue" Type="String" />
                     <asp:ControlParameter ControlID="DropDownListGearbox" Name="gearbox" 
                         PropertyName="SelectedValue" Type="String" />
                     <asp:ControlParameter ControlID="DropDownListPriceFrom" Name="price_from" 
                         PropertyName="SelectedValue" Type="Decimal" />
                     <asp:ControlParameter ControlID="DropDownListPriceTo" Name="price_to" 
                         PropertyName="SelectedValue" Type="Decimal" />
                     <asp:Parameter Name="country_code" Type="String" />
                     <asp:Parameter Name="location_city" Type="String" />
                     <asp:ControlParameter ControlID="DropDownListClima" Name="climate_control" 
                         PropertyName="SelectedValue" Type="String" />
                     <asp:ControlParameter ControlID="DropDownListSeatcount" Name="seat_count" 
                         PropertyName="SelectedValue" Type="Int32" />
                     <asp:Parameter Name="color" Type="String" />
                     <asp:ControlParameter ControlID="DropDownListDorrCount" Name="door_count" 
                         PropertyName="SelectedValue" Type="Int32" />
                     <asp:ControlParameter ControlID="CheckBoxAuxiliary_heating" 
                         Name="Auxiliary_heating" PropertyName="Checked" Type="Boolean" />
                     <asp:ControlParameter ControlID="CheckBoxCentral_locking" 
                         Name="Central_locking" PropertyName="Checked" Type="Boolean" />
                     <asp:ControlParameter ControlID="CheckBoxCruise_control" Name="Cruise_control" 
                         PropertyName="Checked" Type="Boolean" />
                     <asp:ControlParameter ControlID="CheckBoxElectric_heated" 
                         Name="Electric_heated" PropertyName="Checked" Type="Boolean" />
                     <asp:ControlParameter ControlID="CheckBoxElectric_windows" 
                         Name="Electric_windows" PropertyName="Checked" Type="Boolean" />
                     <asp:ControlParameter ControlID="CheckBoxLeather_seats" Name="Leather_seats" 
                         PropertyName="Checked" Type="Boolean" />
                     <asp:ControlParameter ControlID="CheckBoxParking_sensors" 
                         Name="Parking_sensors" PropertyName="Checked" Type="Boolean" />
                     <asp:ControlParameter ControlID="CheckBoxPower_Steering" Name="Power_Steering" 
                         PropertyName="Checked" Type="Boolean" />
                     <asp:ControlParameter ControlID="CheckBoxSunroof" Name="Sunroof" 
                         PropertyName="Checked" Type="Boolean" />
                     <asp:ControlParameter ControlID="CheckBoxFour_wheel_drive" 
                         Name="Four_wheel_drive" PropertyName="Checked" Type="Boolean" />
                     <asp:ControlParameter ControlID="CheckBoxImmobilizer" Name="Immobilizer" 
                         PropertyName="Checked" Type="Boolean" />
                     <asp:ControlParameter ControlID="CheckBoxXenon_headlights" 
                         Name="Xenon_headlights" PropertyName="Checked" Type="Boolean" />
                     <asp:ControlParameter ControlID="CheckBoxABS" Name="ABS" PropertyName="Checked" 
                         Type="Boolean" />
                     <asp:ControlParameter Name="ESP" Type="Boolean" ControlID="CheckBoxESP" 
                         PropertyName="Checked" />
                     <asp:Parameter Name="user_comments" Type="String" />
                     <asp:ControlParameter ControlID="DropDownListRegFrom" 
                         Name="first_reg_year_from" PropertyName="SelectedValue" Type="Int32" />
                     <asp:ControlParameter ControlID="DropDownListMakes0" Name="make0" 
                         PropertyName="SelectedValue" Type="Int32" />
                     <asp:ControlParameter ControlID="DropDownListRegTo" Name="first_reg_year_to" 
                         PropertyName="SelectedValue" Type="Int32" />
                     <asp:ControlParameter ControlID="DropDownListModels0" Name="model0" 
                         PropertyName="SelectedValue" Type="Int32" />
                     <asp:ControlParameter ControlID="DropDownListMakes1" Name="make1" 
                         PropertyName="SelectedValue" Type="Int32" />
                     <asp:ControlParameter ControlID="DropDownListModels1" Name="model1" 
                         PropertyName="SelectedValue" Type="Int32" />
                     <asp:ControlParameter ControlID="DropDownListMakes2" Name="make2" 
                         PropertyName="SelectedValue" Type="Int32" />
                     <asp:ControlParameter ControlID="DropDownListModels2" Name="model2" 
                         PropertyName="SelectedValue" Type="Int32" />
                     <asp:ControlParameter ControlID="CheckBoxCarType1Limo" Name="cartype1" 
                         PropertyName="Checked" Type="Boolean" />
                     <asp:ControlParameter ControlID="CheckBoxCarType2Small" Name="cartype2" 
                         PropertyName="Checked" Type="Boolean" />
                     <asp:ControlParameter ControlID="CheckBoxCarType3Estate" Name="cartype3" 
                         PropertyName="Checked" Type="Boolean" />
                     <asp:ControlParameter ControlID="CheckBoxCarType4Van" Name="cartype4" 
                         PropertyName="Checked" Type="Boolean" />
                     <asp:ControlParameter ControlID="CheckBoxCarType5Offroad" Name="cartype5" 
                         PropertyName="Checked" Type="Boolean" />
                     <asp:ControlParameter ControlID="CheckBoxCarType6Cabrio" Name="cartype6" 
                         PropertyName="Checked" Type="Boolean" />
                     <asp:ControlParameter ControlID="CheckBoxCarType7Sport" Name="cartype7" 
                         PropertyName="Checked" Type="Boolean" />
                     <asp:ControlParameter ControlID="CheckBoxCarType8Other" Name="cartype8" 
                         PropertyName="Checked" Type="Boolean" />
                     <asp:ControlParameter ControlID="DropDownListMillageFrom" 
                         Name="millage_km_from" PropertyName="SelectedValue" />
                     <asp:ControlParameter ControlID="DropDownListMillageTo" Name="millage_km_to" 
                         PropertyName="SelectedValue" />
                     <asp:Parameter Name="SearchID"  Direction="Output" Type="Int32"  />
                 </InsertParameters>
                 <UpdateParameters>
                     <asp:Parameter Name="searched_user" Type="Int32" />
                     <asp:Parameter Name="make" Type="Int32" />
                     <asp:Parameter Name="model" Type="Int32" />
                     <asp:Parameter Name="model_by_user" Type="String" />
                     <asp:Parameter Name="car_type" Type="String" />
                     <asp:Parameter Name="engine_power" Type="String" />
                     <asp:Parameter Name="first_reg_date" Type="String" />
                     <asp:Parameter Name="millage_km_from" Type="String" />
                     <asp:Parameter Name="fuel_type" Type="String" />
                     <asp:Parameter Name="gearbox" Type="String" />
                     <asp:Parameter Name="price_from" Type="Decimal" />
                     <asp:Parameter Name="price_to" Type="Decimal" />
                     <asp:Parameter Name="country_code" Type="String" />
                     <asp:Parameter Name="location_city" Type="String" />
                     <asp:Parameter Name="climate_control" Type="String" />
                     <asp:Parameter Name="seat_count" Type="Int32" />
                     <asp:Parameter Name="color" Type="String" />
                     <asp:Parameter Name="door_count" Type="Int32" />
                     <asp:Parameter Name="Auxiliary_heating" Type="Boolean" />
                     <asp:Parameter Name="Central_locking" Type="Boolean" />
                     <asp:Parameter Name="Cruise_control" Type="Boolean" />
                     <asp:Parameter Name="Electric_heated" Type="Boolean" />
                     <asp:Parameter Name="Electric_windows" Type="Boolean" />
                     <asp:Parameter Name="Leather_seats" Type="Boolean" />
                     <asp:Parameter Name="Parking_sensors" Type="Boolean" />
                     <asp:Parameter Name="Power_Steering" Type="Boolean" />
                     <asp:Parameter Name="Sunroof" Type="Boolean" />
                     <asp:Parameter Name="Four_wheel_drive" Type="Boolean" />
                     <asp:Parameter Name="Immobilizer" Type="Boolean" />
                     <asp:Parameter Name="Xenon_headlights" Type="Boolean" />
                     <asp:Parameter Name="ABS" Type="Boolean" />
                     <asp:Parameter Name="ESP" Type="Boolean" />
                     <asp:Parameter Name="user_comments" Type="String" />
                     <asp:Parameter Name="first_reg_year_from" Type="Int32" />
                     <asp:Parameter Name="first_reg_year_to" Type="Int32" />
                     <asp:Parameter Name="make0" Type="Int32" />
                     <asp:Parameter Name="model0" Type="Int32" />
                     <asp:Parameter Name="make1" Type="Int32" />
                     <asp:Parameter Name="model1" Type="Int32" />
                     <asp:Parameter Name="make2" Type="Int32" />
                     <asp:Parameter Name="model2" Type="Int32" />
                     <asp:Parameter Name="cartype1" Type="Boolean" />
                     <asp:Parameter Name="cartype2" Type="Boolean" />
                     <asp:Parameter Name="cartype3" Type="Boolean" />
                     <asp:Parameter Name="cartype4" Type="Boolean" />
                     <asp:Parameter Name="cartype5" Type="Boolean" />
                     <asp:Parameter Name="cartype6" Type="Boolean" />
                     <asp:Parameter Name="cartype7" Type="Boolean" />
                     <asp:Parameter Name="cartype8" Type="Boolean" />
                     <asp:Parameter Name="id" Type="Int32" />
                 </UpdateParameters>
             </asp:SqlDataSource>
       
    <asp:RadioButton ID="RadioButtonCarTypeAll" runat="server" GroupName="ct" 
            Text="All vehicle types" AutoPostBack="True" 
                 oncheckedchanged="RadioButtonCarTypeAll_CheckedChanged" 
                 meta:resourcekey="RadioButtonCarTypeAllResource1" Checked="True" />

        <br />
        <asp:RadioButton ID="RadioButtonCartype" runat="server" GroupName="ct" 
            Text="Selected vehicle types" AutoPostBack="True" 
                 meta:resourcekey="RadioButtonCartypeResource1" />
        <br />

       <asp:Panel ID="Cartypes" runat="server" meta:resourcekey="CartypesResource1">

    <asp:Panel ID="Panel1" runat="server" CssClass="small-col small-col-leftmargin" 
                 meta:resourcekey="Panel1Resource1">
        <asp:Panel ID="Panel3" runat="server" CssClass="small-col" Width="123px" 
            meta:resourcekey="Panel3Resource1">
         <asp:CheckBox ID="CheckBoxCarType1Limo" runat="server" Text="Limousine" 
                AutoPostBack="True" meta:resourcekey="CheckBoxCarTypeLimoResource1" />        
            <br />
        <br />
        <asp:CheckBox ID="CheckBoxCarType2Small" runat="server" Text="Small Car" 
                AutoPostBack="True" meta:resourcekey="CheckBoxCarTypeSmallResource1" />
            <br />
        <br />
        <asp:CheckBox ID="CheckBoxCarType3Estate" runat="server" Text="Estate Car" 
                AutoPostBack="True" meta:resourcekey="CheckBoxCarTypeEstateResource1" />
            <br />
        <br />
        <asp:CheckBox ID="CheckBoxCarType4Van" runat="server" Text="Van / Minibus 	" 
                AutoPostBack="True" meta:resourcekey="CheckBoxCarTypeVanResource1" /></asp:Panel>
       <asp:Panel ID="Panel4" runat="server" CssClass="small-col" Width="123px" 
            meta:resourcekey="Panel4Resource1">
           <img alt="" src="images/car_types_02.jpg" 
    style="width: 70px; height: 22px" />
           <br />
           <br />
           &nbsp;<img alt="" 
    src="images/car_types_04.jpg" style="width: 70px; height: 22px" />
           <br />
           <br />
           <img alt="" src="images/car_types_06.jpg" 
    style="width: 70px; height: 22px" />
           <br />
           <br />
           <img alt="" 
    src="images/car_types_08.jpg" style="width: 70px; height: 25px" />
          </asp:Panel>
    </asp:Panel>
    <asp:Panel ID="Panel2" runat="server" CssClass="small-col small-col-leftmargin" 
               meta:resourcekey="Panel2Resource1">
        <asp:Panel ID="Panel5"  runat="server" CssClass="small-col" Width="258px" 
            meta:resourcekey="Panel5Resource1">
            <asp:CheckBox ID="CheckBoxCarType5Offroad" runat="server" 
            Text="Off-road Vehicle/Pickup Truck" AutoPostBack="True" 
                meta:resourcekey="CheckBoxCarTypeOffroadResource1" />
            <br />
        <br />
        <asp:CheckBox ID="CheckBoxCarType6Cabrio" runat="server" Text="Cabrio / roadster" 
                AutoPostBack="True" meta:resourcekey="CheckBoxCarTypeCabrioResource1" />
            <br />
        <br />
        <asp:CheckBox ID="CheckBoxCarType7Sport" runat="server" Text="Sports car/Coupe" 
                AutoPostBack="True" meta:resourcekey="CheckBoxCarTypeSportResource1" />
            <br />
        <br />
        <asp:CheckBox ID="CheckBoxCarType8Other" runat="server" Text="Other	" 
                AutoPostBack="True" meta:resourcekey="CheckBoxCarTypeOtherResource1" /></asp:Panel>
        <asp:Panel ID="Panel6" runat="server" CssClass="small-col" Width="123px" 
            meta:resourcekey="Panel6Resource1">
           <img alt="" src="images/car_types_10.jpg" 
    style="width: 70px; height: 26px" />
            <br />
            <br />
            &nbsp;<img alt="" 
    src="images/car_types_12.jpg" style="width: 70px; height: 22px" />&nbsp;
            <br />
            <br />
            &nbsp;<img alt="" src="images/car_types_14.png" 
    style="width: 70px; height: 22px" /></asp:Panel>
    </asp:Panel>
    </asp:Panel>
        
    </td></tr><tr><td class="style16">
     <asp:Panel runat="server" ID="Carmodels" Width="708px" 
                     meta:resourcekey="CarmodelsResource1">
    
         <br />

   
         <asp:Panel ID="Panel7" runat="server" CssClass="small-col" Width="232px" 
             meta:resourcekey="Panel7Resource1">
             Make:<br />
             <asp:DropDownList ID="DropDownListMakes0" runat="server" AutoPostBack="True" 
                 DataSourceID="SqlDataSourceMakes0" DataTextField="make_name" DataValueField="id" 
                 Width="175px" meta:resourcekey="DropDownListMakes0Resource1" 
                 AppendDataBoundItems="True">
                 <asp:ListItem Value ="-1">Any</asp:ListItem>
             </asp:DropDownList>
             
         </asp:Panel>
         <asp:Panel ID="Panel8" runat="server" Width="280px" 
             meta:resourcekey="Panel8Resource1">
             Model:<br /><asp:DropDownList ID="DropDownListModels0" runat="server" 
                 DataSourceID="SqlDataSourceModel0" DataTextField="model" DataValueField="id" 
                 Width="175px" >
             </asp:DropDownList></asp:Panel>
         <asp:Panel ID="Panel9" runat="server" Width="152px" 
             meta:resourcekey="Panel9Resource1">
         </asp:Panel>
         <asp:Panel ID="Panel10" runat="server" CssClass="small-col" Width="232px" 
             meta:resourcekey="Panel10Resource1">
             Make:<br />
             <asp:DropDownList ID="DropDownListMakes1" runat="server" AutoPostBack="True" 
                 DataSourceID="SqlDataSourceMakes1" DataTextField="make_name" DataValueField="id" 
                 Width="175px" AppendDataBoundItems="True">
                 <asp:ListItem Value ="-1">Any</asp:ListItem>
             </asp:DropDownList>
             
         </asp:Panel>
         <asp:Panel ID="Panel11" runat="server" Width="280px" 
             meta:resourcekey="Panel11Resource1">
             Model:<br /><asp:DropDownList ID="DropDownListModels1" runat="server" 
                 DataSourceID="SqlDataSourceModel1" DataTextField="model" DataValueField="id" 
                 Width="175px" meta:resourcekey="DropDownListModels1Resource1">
                 <asp:ListItem Value="-1" meta:resourcekey="ListItemResource2">Any</asp:ListItem>
             </asp:DropDownList></asp:Panel>
         <asp:Panel ID="Panel12" runat="server" Width="152px" 
             meta:resourcekey="Panel12Resource1">
         </asp:Panel>
         <asp:Panel ID="Panel13" runat="server" CssClass="small-col" Width="232px" 
             meta:resourcekey="Panel13Resource1">
             Make:<br />
             <asp:DropDownList ID="DropDownListMakes2" runat="server" AutoPostBack="True" 
                 DataSourceID="SqlDataSourceMakes2" DataTextField="make_name" DataValueField="id" 
                 Width="175px"  AppendDataBoundItems="True">
                 <asp:ListItem Value ="-1">Any</asp:ListItem>
             </asp:DropDownList>
             
         </asp:Panel>
         <asp:Panel ID="Panel14" runat="server" Width="280px" 
             meta:resourcekey="Panel14Resource1">
             Model:<br /><asp:DropDownList ID="DropDownListModels2" runat="server" 
                 DataSourceID="SqlDataSourceModel2" DataTextField="model" DataValueField="id" 
                 Width="175px" meta:resourcekey="DropDownListModels2Resource1">
                 <asp:ListItem Value="-1" meta:resourcekey="ListItemResource3">Any</asp:ListItem>
             </asp:DropDownList></asp:Panel>
         <asp:Panel ID="Panel15" runat="server" Width="152px" 
             meta:resourcekey="Panel15Resource1">
         </asp:Panel>
         </asp:Panel>
   
        <br />
         </td></tr><tr><td class="style16">

                 <table class="style1" style="padding:5px;">
                     <tr>
                         <td class="style8">
                              <strong>First Registration </strong>from:</td>
                         <td class="style4" rowspan="7">
                             <strong>Number of Vehicle Owners:</strong><br />
                             <asp:DropDownList ID="DropDownList10" runat="server" AutoPostBack="True" 
                                 meta:resourcekey="DropDownList10Resource1">
                                 <asp:ListItem meta:resourcekey="ListItemResource14" Value="10">Any</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource15" Value="1">Up to 1</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource16" Value="2">Up to 2</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource17" Value="3">Up to 3</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource18" Value="4">Up to 4</asp:ListItem>
                             </asp:DropDownList>
                             <br />
                             <br />
                             Fuel type:<br />
                             <asp:DropDownList ID="DropDownListFuelType" runat="server" AutoPostBack="True" 
                                 meta:resourcekey="DropDownList13Resource1" Width="200px">
                             </asp:DropDownList>
                             <br />
                             <br />
                             Gearbox:<br />
                             <asp:DropDownList ID="DropDownListGearbox" runat="server" AutoPostBack="True" 
                                 meta:resourcekey="DropDownList5Resource1">
                                 <asp:ListItem Value="-1">Does not metter</asp:ListItem>
                                 <asp:ListItem Value="Manual">Manual</asp:ListItem>
                                 <asp:ListItem Value="Automatic">Automatic</asp:ListItem>
                                 <asp:ListItem Value="TipTronic">TipTronic</asp:ListItem>
                                 <asp:ListItem Value="Other">Other</asp:ListItem>
                             </asp:DropDownList>
                             <br />
                             <br />
                         </td>
                         <td>
                             &nbsp;</td>
                     </tr>
                     <tr>
                         <td class="style8">
                              <asp:DropDownList ID="DropDownListRegFrom" runat="server" Width="80px" 
                                  AutoPostBack="True" meta:resourcekey="DropDownList8Resource1">
                                  <asp:ListItem meta:resourcekey="ListItemResource1">2012</asp:ListItem>
                                  <asp:ListItem meta:resourcekey="ListItemResource2">2011</asp:ListItem>
                                  <asp:ListItem meta:resourcekey="ListItemResource3">2010</asp:ListItem>
                                  <asp:ListItem meta:resourcekey="ListItemResource4">2009</asp:ListItem>
                                  <asp:ListItem meta:resourcekey="ListItemResource5">2008</asp:ListItem>
                                  <asp:ListItem meta:resourcekey="ListItemResource6">2007</asp:ListItem>
                                  <asp:ListItem meta:resourcekey="ListItemResource7">2006</asp:ListItem>
                                  <asp:ListItem meta:resourcekey="ListItemResource8">2005</asp:ListItem>
                                  <asp:ListItem meta:resourcekey="ListItemResource9">2004</asp:ListItem>
                                  <asp:ListItem meta:resourcekey="ListItemResource10">2003</asp:ListItem>
                                  <asp:ListItem meta:resourcekey="ListItemResource11">2002</asp:ListItem>
                                  <asp:ListItem meta:resourcekey="ListItemResource12">2001</asp:ListItem>
                                  <asp:ListItem meta:resourcekey="ListItemResource13" Selected="True">2000</asp:ListItem>
                              </asp:DropDownList>
                              until:
                              <asp:DropDownList ID="DropDownListRegTo" runat="server" Width="80px" 
                                  AutoPostBack="True" meta:resourcekey="DropDownList9Resource1">
                                  <asp:ListItem meta:resourcekey="ListItemResource1">2012</asp:ListItem>
                                  <asp:ListItem meta:resourcekey="ListItemResource2">2011</asp:ListItem>
                                  <asp:ListItem meta:resourcekey="ListItemResource3">2010</asp:ListItem>
                                  <asp:ListItem meta:resourcekey="ListItemResource4">2009</asp:ListItem>
                                  <asp:ListItem meta:resourcekey="ListItemResource5">2008</asp:ListItem>
                                  <asp:ListItem meta:resourcekey="ListItemResource6">2007</asp:ListItem>
                                  <asp:ListItem meta:resourcekey="ListItemResource7">2006</asp:ListItem>
                                  <asp:ListItem meta:resourcekey="ListItemResource8">2005</asp:ListItem>
                                  <asp:ListItem meta:resourcekey="ListItemResource9">2004</asp:ListItem>
                                  <asp:ListItem meta:resourcekey="ListItemResource10">2003</asp:ListItem>
                                  <asp:ListItem meta:resourcekey="ListItemResource11">2002</asp:ListItem>
                                  <asp:ListItem meta:resourcekey="ListItemResource12">2001</asp:ListItem>
                                  <asp:ListItem meta:resourcekey="ListItemResource13">2000</asp:ListItem>
                              </asp:DropDownList>
                         </td>
                         <td>
                             &nbsp;</td>
                     </tr>
                     <tr>
                         <td class="style8">
                             <strong>Mileage </strong>from:</td>
                         <td>
                             &nbsp;</td>
                     </tr>
                     <tr>
                         <td class="style8">
                             <asp:DropDownList ID="DropDownListMillageFrom" runat="server" Width="80px" 
                                 AutoPostBack="True" meta:resourcekey="DropDownList11Resource1">
                                 <asp:ListItem meta:resourcekey="ListItemResource1">2012</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource2">2011</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource3">2010</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource4">2009</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource5">2008</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource6">2007</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource7">2006</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource8">2005</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource9">2004</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource10">2003</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource11">2002</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource12">2001</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource13" Selected="True">2000</asp:ListItem>
                             </asp:DropDownList>
                             &nbsp;until:
                             <asp:DropDownList ID="DropDownListMillageTo" runat="server" Width="80px" 
                                 AutoPostBack="True" meta:resourcekey="DropDownList12Resource1">
                                 <asp:ListItem meta:resourcekey="ListItemResource1">2012</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource2">2011</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource3">2010</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource4">2009</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource5">2008</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource6">2007</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource7">2006</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource8">2005</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource9">2004</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource10">2003</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource11">2002</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource12">2001</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource13">2000</asp:ListItem>
                             </asp:DropDownList>
                         </td>
                         <td>
                             &nbsp;</td>
                     </tr>
                     <tr>
                         <td class="style8">
                             <strong>Price </strong>from:&nbsp;</td>
                         <td>
                             &nbsp;</td>
                     </tr>
                     <tr>
                         <td class="style8">
                             <asp:DropDownList ID="DropDownListPriceFrom" runat="server" Width="80px" 
                                 AutoPostBack="True" meta:resourcekey="DropDownList5Resource1">
                                 <asp:ListItem >0</asp:ListItem>
                                 <asp:ListItem >300</asp:ListItem>
                                 <asp:ListItem >400</asp:ListItem>
                                 <asp:ListItem >500</asp:ListItem>
                                 <asp:ListItem >600</asp:ListItem>
                                 <asp:ListItem >700</asp:ListItem>
                                 <asp:ListItem >800</asp:ListItem>
                                 <asp:ListItem >900</asp:ListItem>
                                 <asp:ListItem >1000</asp:ListItem>
                                 <asp:ListItem >1100</asp:ListItem>
                                 <asp:ListItem >1200</asp:ListItem>
                                 <asp:ListItem >1300</asp:ListItem>
                                 <asp:ListItem >1400</asp:ListItem>
                                 <asp:ListItem >1500</asp:ListItem>
                                 <asp:ListItem >1600</asp:ListItem>
                                 <asp:ListItem >1700</asp:ListItem>
                                 <asp:ListItem >1800</asp:ListItem>
                                 <asp:ListItem >1900</asp:ListItem>
                                 <asp:ListItem >2000</asp:ListItem>
                                 <asp:ListItem >2500</asp:ListItem>
                                 <asp:ListItem >3000</asp:ListItem>
                                 <asp:ListItem >3500</asp:ListItem>
                                 <asp:ListItem >4000</asp:ListItem>
                                 <asp:ListItem >4500</asp:ListItem>
                                 <asp:ListItem >5000</asp:ListItem>
                                 <asp:ListItem >5500</asp:ListItem>
                                 <asp:ListItem >6000</asp:ListItem>
                                 <asp:ListItem >6500</asp:ListItem>
                                 <asp:ListItem >7000</asp:ListItem>
                                 <asp:ListItem >7500</asp:ListItem>
                                 <asp:ListItem >8000</asp:ListItem>
                                 <asp:ListItem >8500</asp:ListItem>
                                 <asp:ListItem >9000</asp:ListItem>
                                 <asp:ListItem >9500</asp:ListItem>
                                 <asp:ListItem >10000</asp:ListItem>
                                 <asp:ListItem >10500</asp:ListItem>
                                 <asp:ListItem >11000</asp:ListItem>
                                 <asp:ListItem >11500</asp:ListItem>
                                 <asp:ListItem >12000</asp:ListItem>
                                 <asp:ListItem >12500</asp:ListItem>
                                 <asp:ListItem >13000</asp:ListItem>
                                 <asp:ListItem >13500</asp:ListItem>
                                 <asp:ListItem >14000</asp:ListItem>
                                 <asp:ListItem >14500</asp:ListItem>
                                 <asp:ListItem >15000</asp:ListItem>
                                 <asp:ListItem >15500</asp:ListItem>
                                 <asp:ListItem >16000</asp:ListItem>
                                 <asp:ListItem >16500</asp:ListItem>
                                 <asp:ListItem >17000</asp:ListItem>
                                 <asp:ListItem >17500</asp:ListItem>
                                 <asp:ListItem >18000</asp:ListItem>
                                 <asp:ListItem >18500</asp:ListItem>
                                 <asp:ListItem >19000</asp:ListItem>
                                 <asp:ListItem >19500</asp:ListItem>
                                 <asp:ListItem >20000</asp:ListItem>
                             </asp:DropDownList>
                             &nbsp;until: 
                             <asp:DropDownList ID="DropDownListPriceTo" runat="server" Width="80px" 
                                 AutoPostBack="True" meta:resourcekey="DropDownList6Resource1">
                                 <asp:ListItem >30001</asp:ListItem>
                                 <asp:ListItem >40001</asp:ListItem>
                                 <asp:ListItem >50001</asp:ListItem>
                                 <asp:ListItem >60001</asp:ListItem>
                                 <asp:ListItem >70001</asp:ListItem>
                                 <asp:ListItem >80001</asp:ListItem>
                                 <asp:ListItem >90001</asp:ListItem>
                                 <asp:ListItem >100001</asp:ListItem>
                                 <asp:ListItem >120001</asp:ListItem>
                                 <asp:ListItem >140001</asp:ListItem>
                                 <asp:ListItem >160001</asp:ListItem>
                                 <asp:ListItem >180001</asp:ListItem>
                                 <asp:ListItem >200001</asp:ListItem>
                                 <asp:ListItem >220001</asp:ListItem>
                                 <asp:ListItem >240001</asp:ListItem>
                                 <asp:ListItem >260001</asp:ListItem>
                                 <asp:ListItem >280001</asp:ListItem>
                                 <asp:ListItem >300001</asp:ListItem>
                                 <asp:ListItem >&gt;300001</asp:ListItem>
                             </asp:DropDownList>
                         </td>
                         <td>
                             &nbsp;</td>
                     </tr>
                     <tr>
                         <td class="style8">
                             Region:<br />
                             <asp:DropDownList ID="DropDownList11" runat="server" Height="28px" 
                                 Width="205px">
                             </asp:DropDownList>
                         </td>
                         <td>
                             <asp:Button ID="Button2" runat="server" 
                                 Font-Names="Arial" Text=" " 
                                 onclick="Button2_Click" CssClass="gradient-button" Height="23px" 
                                 Width="118px" />
                         </td>
                     </tr>
                 </table>
                </td></tr></table> 
                <br />
                 <table style="background-image:url(images/box720x440.png); background-repeat: no-repeat;">
         <tr><td  class="style13">CAR <span class="color-3">SEARCH</span></td></tr><tr>
                     <td class="style13">
         <tr><td class="style13">
                 <table>
                      
                     <tr>
                         <td class="style18" rowspan="3">
                             Climate Control:<br />
                             <asp:DropDownList ID="DropDownListClima" runat="server" AutoPostBack="True" 
                                 Height="19px" meta:resourcekey="DropDownList8Resource1" Width="200px">
                                 <asp:ListItem Value="0">No</asp:ListItem>
                                 <asp:ListItem Value="1">Automatic</asp:ListItem>
                                 <asp:ListItem Value="2">Manual</asp:ListItem>
                             </asp:DropDownList>
                             <br />
                             <br />
                             Number of seats:<br />
                             <asp:DropDownList ID="DropDownListSeatcount" runat="server" AutoPostBack="True" 
                                 meta:resourcekey="DropDownList9Resource1" Width="200px">
                                 <asp:ListItem meta:resourcekey="ListItemResource33">2</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource34">4</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource92">5</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource35">6</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource36">7</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource37">8</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource38">More</asp:ListItem>
                             </asp:DropDownList>
                             <br />
                             <br />
                             Door Count:<br />
                             <asp:DropDownList ID="DropDownListDorrCount" runat="server" AutoPostBack="True" 
                                 meta:resourcekey="DropDownList10Resource1" Width="200px">
                                 <asp:ListItem meta:resourcekey="ListItemResource39">2</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource40">3</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource41">4</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource42">5</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource43">6</asp:ListItem>
                                 <asp:ListItem meta:resourcekey="ListItemResource44">7</asp:ListItem>
                             </asp:DropDownList>
                         </td>
                         <td class="style19">
                             <asp:CheckBox ID="CheckBoxAuxiliary_heating" runat="server" AutoPostBack="True" 
                                 meta:resourcekey="Auxiliary_heatingCheckBoxResource1" 
                                 Text="Auxiliary Heating&nbsp;" />
                             <br />
                             <asp:CheckBox ID="CheckBoxCentral_locking" runat="server" AutoPostBack="True" 
                                 meta:resourcekey="Central_lockingCheckBoxResource1" Text="Central Locking" />
                             <br />
                             <asp:CheckBox ID="CheckBoxCruise_control" runat="server" AutoPostBack="True" 
                                 meta:resourcekey="Cruise_controlCheckBoxResource1" Text="Cruise_control" />
                             <br />
                             <asp:CheckBox ID="CheckBoxElectric_heated" runat="server" AutoPostBack="True" 
                                 meta:resourcekey="Electric_heatedCheckBoxResource1" Text="Electric_heated" />
                             <br />
                             <asp:CheckBox ID="CheckBoxElectric_windows" runat="server" AutoPostBack="True" 
                                 meta:resourcekey="Electric_windowsCheckBoxResource1" Text="Electric_windows" />
                             <br />
                             <asp:CheckBox ID="CheckBoxLeather_seats" runat="server" AutoPostBack="True" 
                                 meta:resourcekey="Leather_seatsCheckBoxResource1" Text="Leather_seats" />
                             <br />
                             <asp:CheckBox ID="CheckBoxParking_sensors" runat="server" AutoPostBack="True" 
                                 meta:resourcekey="Parking_sensorsCheckBoxResource1" Text="Parking_sensors" />
                         </td>
                         <td>
                             <asp:CheckBox ID="CheckBoxPower_Steering" runat="server" AutoPostBack="True" 
                                 meta:resourcekey="Power_SteeringCheckBoxResource1" Text="Power_Steering" />
                             <br />
                             <asp:CheckBox ID="CheckBoxSunroof" runat="server" AutoPostBack="True" 
                                 meta:resourcekey="SunroofCheckBoxResource1" Text="Sunroof" />
                             <br />
                             <asp:CheckBox ID="CheckBoxFour_wheel_drive" runat="server" AutoPostBack="True" 
                                 meta:resourcekey="Four_wheel_driveCheckBoxResource1" Text="Four_wheel_drive" />
                             <br />
                             <asp:CheckBox ID="CheckBoxImmobilizer" runat="server" AutoPostBack="True" 
                                 meta:resourcekey="ImmobilizerCheckBoxResource1" Text="Immobilizer" />
                             <br />
                             <asp:CheckBox ID="CheckBoxXenon_headlights" runat="server" AutoPostBack="True" 
                                 meta:resourcekey="Xenon_headlightsCheckBoxResource1" Text="Xenon_headlights" />
                             <br />
                             <asp:CheckBox ID="CheckBoxABS" runat="server" AutoPostBack="True" 
                                 meta:resourcekey="ABSCheckBoxResource1" Text="ABS" />
                             <br />
                             <asp:CheckBox ID="CheckBoxESP" runat="server" AutoPostBack="True" 
                                 meta:resourcekey="ESPCheckBoxResource1" Text="ESP" />
                         </td>
                     </tr>
                     <tr>
                         <td class="style19">
                             &nbsp;</td>
                         <td>
                             &nbsp;</td>
                     </tr>
                     <tr>
                         <td class="style19">
                             &nbsp;</td>
                         <td>
                             &nbsp;</td>
                     </tr>
                 </table>
                 Color:
                 <hr />
                 <table width="100%">
                     <tr>
                         <td class="style6">
                             <asp:CheckBox ID="CheckBox13" runat="server" 
                                 meta:resourcekey="CheckBox13Resource1" Text="Metallic" />
                         </td>
                         <td class="style11">
                             <asp:CheckBox ID="CheckBox20" runat="server" AutoPostBack="True" 
                                 meta:resourcekey="CheckBox20Resource1" Text="Beige" />
                             <br />
                             <asp:CheckBox ID="CheckBox17" runat="server" AutoPostBack="True" 
                                 meta:resourcekey="CheckBox17Resource1" Text="Black" />
                             <br />
                             <asp:CheckBox ID="CheckBox14" runat="server" AutoPostBack="True" 
                                 meta:resourcekey="CheckBox14Resource1" Text="Blue" />
                             <br />
                             <asp:CheckBox ID="CheckBox18" runat="server" AutoPostBack="True" 
                                 meta:resourcekey="CheckBox18Resource1" Text="Brown" />
                             <br />
                             <asp:CheckBox ID="CheckBox19" runat="server" AutoPostBack="True" 
                                 meta:resourcekey="CheckBox19Resource1" Text="Gold" />
                             <br />
                         </td>
                         <td class="style10">
                             <asp:CheckBox ID="CheckBox15" runat="server" AutoPostBack="True" 
                                 meta:resourcekey="CheckBox15Resource1" Text="Green" />
                             <br />
                             <asp:CheckBox ID="CheckBox21" runat="server" AutoPostBack="True" 
                                 meta:resourcekey="CheckBox21Resource1" Text="Grey" />
                             <br />
                             <asp:CheckBox ID="CheckBox22" runat="server" AutoPostBack="True" 
                                 meta:resourcekey="CheckBox22Resource1" Text="Orange" />
                             <br />
                             <asp:CheckBox ID="CheckBox23" runat="server" AutoPostBack="True" 
                                 meta:resourcekey="CheckBox23Resource1" Text="Purple" />
                         </td>
                         <td>
                             <asp:CheckBox ID="CheckBox16" runat="server" AutoPostBack="True" 
                                 meta:resourcekey="CheckBox16Resource1" Text="Red" />
                             <br />
                             <asp:CheckBox ID="CheckBox24" runat="server" AutoPostBack="True" 
                                 meta:resourcekey="CheckBox24Resource1" Text="Silver" />
                             <br />
                             <asp:CheckBox ID="CheckBox25" runat="server" AutoPostBack="True" 
                                 meta:resourcekey="CheckBox25Resource1" Text="Green" />
                             <br />
                             <asp:CheckBox ID="CheckBox26" runat="server" AutoPostBack="True" 
                                 meta:resourcekey="CheckBox26Resource1" Text="Yellow" />
                             <br />
                         </td>
                     </tr>
                     <tr>
                         <td class="style6">
                             &nbsp;</td>
                         <td class="style11">
                             &nbsp;</td>
                         <td class="style10">
                             &nbsp;</td>
                         <td>
                             <asp:Button ID="Button3" runat="server" BackColor="Red" BorderStyle="Groove" 
                                 Font-Names="Arial" ForeColor="White" Text="SHOW RESULT" 
                                 onclick="Button3_Click" />
                         </td>
                     </tr>
                 </table>

</td></tr><tr><td class="style13">
                
<br />
                <asp:SqlDataSource ID="SqlDataSourceMakes0" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:bestgifts4usConnectionString %>" 
                    SelectCommand="SELECT [id], [make_name] FROM [carportal_make]">
                </asp:SqlDataSource>
                <asp:SqlDataSource ID="SqlDataSourceModel0" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:bestgifts4usConnectionString %>"                    
        
                     SelectCommand="SELECT id, model, make_id FROM carportal_model WHERE (make_id = @makeid)">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="DropDownListMakes0" Name="makeid" 
                            PropertyName="SelectedValue" />
                    </SelectParameters>
                </asp:SqlDataSource>
                 <asp:SqlDataSource ID="SqlDataSourceMakes2" runat="server" 
                     ConnectionString="<%$ ConnectionStrings:bestgifts4usConnectionString %>" 
                     SelectCommand="SELECT [id], [make_name] FROM [carportal_make]">
                 </asp:SqlDataSource>
                 <asp:SqlDataSource ID="SqlDataSourceModel2" runat="server" 
                     ConnectionString="<%$ ConnectionStrings:bestgifts4usConnectionString %>" 
                     SelectCommand="SELECT id, model, make_id FROM carportal_model WHERE (make_id = @makeid)">
                     <SelectParameters>
                         <asp:ControlParameter ControlID="DropDownListMakes2" Name="makeid" 
                             PropertyName="SelectedValue" />
                     </SelectParameters>
                 </asp:SqlDataSource>
                 <asp:SqlDataSource ID="SqlDataSourceMakes1" runat="server" 
                     ConnectionString="<%$ ConnectionStrings:bestgifts4usConnectionString %>" 
                     SelectCommand="SELECT [id], [make_name] FROM [carportal_make]">
                 </asp:SqlDataSource>
                 <asp:SqlDataSource ID="SqlDataSourceModel1" runat="server" 
                     ConnectionString="<%$ ConnectionStrings:bestgifts4usConnectionString %>" 
                     SelectCommand="SELECT id, model, make_id FROM carportal_model WHERE (make_id = @makeid)">
                     <SelectParameters>
                         <asp:ControlParameter ControlID="DropDownListMakes1" Name="makeid" 
                             PropertyName="SelectedValue" />
                     </SelectParameters>
                 </asp:SqlDataSource>
</td></tr>
    </table></div>
     </ContentTemplate> </asp:UpdatePanel>
    <br />
    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="SEARCH" />
</asp:Content>
